<template>
  <van-nav-bar
    title="通讯录"
    left-text="返回"
    left-arrow
    @click-left="onClickLeft"
  />
  <van-index-bar>
    <van-index-anchor index="A" />
    <van-cell title="Alice" />
    <van-cell title="Amy" />
    <van-index-anchor index="B" />
    <van-cell title="Bob" />
  </van-index-bar>
</template>

<script setup lang="ts">
const onClickLeft = () => {
  history.back()
}
</script>

<style scoped>
/* 在这里编写样式 */
</style>